function dev_track_new () {
	
	var dev_track_type = document.getElementById("dev_track_type").value;
	var dev_track_details = document.getElementById("dev_track_details").innerHTML;
	var dev_track_status = document.getElementById("dev_track_status").value;
	
	var params = "?dev_track_type=" + dev_track_type;
	params += "&dev_track_details=" + dev_track_details;
	params += "&dev_track_status=" + dev_track_status;
	
	var dev_track_result = document.getElementById("dev_track_result");
	dev_track_result.innerHTML = "Sending request...";
	dev_track_result.innerHTML = getFile("/modules/dev_track/ajax/new_dev_track.php" + params);
	dev_track_list ();
}


function dev_track_list () {
	var dev_track_list = document.getElementById("dev_track_list");
	
	dev_track_list.innerHTML = "Loading...";
	dev_track_list.innerHTML = getFile("/modules/dev_track/ajax/dev_track_list.php");
}

function dev_update(i) {
	var dev_status = document.getElementById("dev_status_" + i).value;
	var dev_files = document.getElementById("dev_files_" + i).innerHTML;
	var dev_comments = document.getElementById("dev_comments_" + i).innerHTML;
	
	
	var params = "?dev_id="+i;
	params += "&dev_status=" + dev_status;
	params += "&dev_files=" + dev_files;
	params += "&dev_comments=" + dev_comments;
	
	var url = "/modules/dev_track/ajax/update_dev_track.php" + params;
	
	document.getElementById("dev_update_result").innerHTML = getFile(url);
	dev_track_list();
}

dev_track_list();